//
//  MainViewController.h
//  DriverBus
//
//  Created by MacMini20170218 on 2017/3/27.
//  Copyright © 2017年 JiYang. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Bus.h"
#import "Driver.h"
#import "AppDelegate.h"
#import "GCDSocketManager.h"
#import <AFNetworking.h>

@protocol MainViewDelegate <NSObject>

- (void)terminal;

@end

@interface MainViewController : UIViewController<UIAlertViewDelegate,BMKLocationServiceDelegate>

@property (strong,atomic) Driver *driver;
@property (weak, nonatomic) IBOutlet UILabel *peopleNumber;

- (IBAction)terminalButton:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *driverNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *busTypeLabel;
@property (weak, nonatomic) IBOutlet UIButton *addPeople;
@property (weak, nonatomic) IBOutlet UIButton *reducePeople;
@property (weak, nonatomic) IBOutlet UIView *topInfoView;
@property (weak, nonatomic) IBOutlet UIButton *terminalButton;

- (IBAction)add:(id)sender;
- (IBAction)reduce:(id)sender;

@property (weak,nonatomic) id <MainViewDelegate> delegate;

@end
